package service.impl;

import dao.RecordDao;
import entity.Record;
import org.springframework.stereotype.Service;
import service.RecordService;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service("recordService")
public class Recordimpl implements RecordService {

    @Resource(name="recordDao")
    private RecordDao recordDao;

    @Override
    public List<Record> list() {
        return recordDao.list();
    }


    public int add(Record record) {
        return recordDao.add(record);
    }


    @Override
    public List<Record> query(Map<String, Object> map) {
        return recordDao.query(map);
    }

    @Override
    public int count(Map<String, Object> map) {
        return recordDao.count(map);
    }

    @Override
    public List<Record> Qyewuyuan(Map<String, Object> map) {
        return recordDao.Qyewuyuan(map);
    }

    @Override
    public List<Record> Qkehuchuhuo(Map<String, Object> map) {
        return recordDao.Qkehuchuhuo(map);
    }


}
